'''============================
@Time : 2024/1/11 12:06
@Author : YangLiHua
@File : runner_cases.py
@Desc : 
============================'''
# import unittest
#
# suite=unittest.defaultTestLoader.discover(start_dir=r'./test_demo',pattern='test*.py')
# runner=unittest.TextTestRunner()
# runner.run(suite)

import unittest
from BeautifulReport import BeautifulReport
from config.config import cases_path,report_path

# 加载批量的测试用例
suite = unittest.defaultTestLoader.discover(start_dir=cases_path,pattern='test*.py')

result=BeautifulReport(suite)
result.report(description='系统登录的测试报告',filename='SIT测试报告',report_dir=report_path)